﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Coder.Beer.Robot.Api.ApplicationModel
{
    public class NodeBBTopic
    {
        public int UId { get; set; }
        public string Title { get; set; }
        public long LastPostTime { get; set; }
        [Key]
        public long TId { get; set; }

        public List<NodeBBPost> Posts { get; set; }

        public override string ToString()
        {
            return $"{TId}:{Title}:{LastPostTime}";
        }
    }
}
